<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>{:$page_info['title']}</title>
<link rel="icon" href="favicon.ico" type="image/ico">

<meta name="author" content="yinqi">
<link href="__STATIC__/admin/css/bootstrap.min.css" rel="stylesheet">
<link href="__STATIC__/admin/css/materialdesignicons.min.css" rel="stylesheet">
<link href="__STATIC__/admin/css/style.min.css" rel="stylesheet">

<link href="__STATIC__/common/select2/select2.css" rel="stylesheet">
<link href="__STATIC__/admin/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css" rel="stylesheet">

<link href="__STATIC__/admin/css/cch.css" rel="stylesheet">
</head>
  
<body>
<div class="container-fluid p-t-15">
  
  <div class="row">
    <div class="col-lg-12">
      <div class="card">
        
        
        <div class="card-body">
          
            <div class="table-responsive">
                <table class="table table-bordered table-striped">
                    <tr>
                        <th>用户名</th>
                        <td width="25%">{:$data['account']}</td>
                        <th>姓名</th>
                        <td width="25%">{:$data['truename']}</td>
                        <th>手机号码</th>
                        <td width="25%">{:$data['mobile']}</td>
                    </tr>
                    <tr>
                        <th>角色</th>
                        <td>{:$model->getRoleCn($data['role'])}</td>
                        <th>总折扣</th>
                        <td>{:$data['total_discount']}</td>
                        <th>折扣详情</th>
                        <td><a href="{:url('admin_discount/index')}">详情</a></td>
                    </tr>
                    <tr>
                        <th>创建时间</th>
                        <td>{:timeDef($data['ctime'],'','Y-m-d H:i:s')}</td>
                        <th>邀请链接</th>
                        <td colspan="3">
                            <span id="invite_url">{:url('index/user/register',['admin_id'=>$data['id']],'',true)}</span>
                            <a class="btn btn-xs btn-default" href="javascript:void(0)" data-clipboard-target="#invite_url" id="invite_btn" data-toggle="tooltip" title="复制"><i class="mdi mdi-content-copy"></i></a>
                        </td>
                    </tr>
          
                </table>
            </div>

        </div>
      </div>
    </div>
    
  </div>
  
</div>

<script type="text/javascript" src="__STATIC__/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/bootstrap.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/main.min.js"></script>

<!-- 时间选择器 -->
<script src="__STATIC__/admin/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="__STATIC__/admin/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="__STATIC__/admin/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>

<script src="__STATIC__/common/select2/select2.min.js"></script><!-- 下拉搜索 -->

<script type="text/javascript" src="__STATIC__/common/clipboard.min.js"></script>
<script type="text/javascript" src="__STATIC__/common/cch-util.js"></script>

<script type="text/javascript" src="__STATIC__/admin/js/lyear-loading.js"></script><!-- loading -->
<script type="text/javascript" src="__STATIC__/admin/js/cch.js"></script>
</body>
<script type="text/javascript">
    var clipboard = new ClipboardJS('#invite_btn');
    clipboard.on('success',function(e){
        cchUtil.message('复制成功');
        e.clearSelection();
    });
</script>
</html>